package com.ruoyi.teaching.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

/**
 * @author 15332
 * @version 1.0
 * @date 2025/9/10 13:39
 * @description interview 实体类
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "interview")
public class Interview {
  @Id
  private Long id;
  @Field(type = FieldType.Text, analyzer = "ik_max_word")
  private String all;

  @Field(type = FieldType.Keyword)
  private String question;

  @Field(type = FieldType.Keyword, index = false)
  private String answer;

  @Field(type = FieldType.Keyword)
  private String knowledgePoint;

  @Field(type = FieldType.Long)
  private Long importance;

  @Field(type = FieldType.Long)
  private Long stage;

  @Field(type = FieldType.Date, format = DateFormat.date_time)
  private Date createTime;
}
